package com.example.demo.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.demo.entity.Administrators;

public interface AdministratorsRepository extends JpaRepository<Administrators, Integer> {
	@Query("select a from Administrators a where a.AdminName = ?1")
	Administrators findByAdminName(String adminName);
}
